package com.rt.java.time;

import java.time.LocalTime;

public class LocalTimeDemo {
    public static void main(String[] args) {
        LocalTime now = LocalTime.now();
        now.plusHours(1); // 加一小时
        now.minusMinutes(2); // 减两分钟
        now.withSecond(1); // 修改秒
        now.isBefore(now.plusHours(1)); // true
    }
}
